package com.miya.demo.model.vo;

import com.miya.demo.common.annotations.DataMask;
import com.miya.demo.common.enums.DataMaskEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author CaiXiaowei
 * @description 数据脱敏demo
 * @date 2023/7/20 18:20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DataMaskDemoVO implements Serializable {

    @DataMask(function = DataMaskEnum.USERNAME)
    private String username;

    @DataMask
    private String phone;

    @DataMask(function = DataMaskEnum.ADDRESS)
    private String address;
}
